#!/bin/bash
version="`date +%m%d%H%M`"
#编译打包
"D:/Program Files/Java/jdk1.8.0_191/bin/java.exe" -Dmaven.multiModuleProjectDirectory=F:/project/InvoiceRecognizer "-Dmaven.home=C:/Program Files/JetBrains/IntelliJ IDEA 2020.1.3/plugins/maven/lib/maven3" "-Dclassworlds.conf=C:/Program Files/JetBrains/IntelliJ IDEA 2020.1.3/plugins/maven/lib/maven3/bin/m2.conf" "-Dmaven.ext.class.path=C:/Program Files/JetBrains/IntelliJ IDEA 2020.1.3/plugins/maven/lib/maven-event-listener.jar" "-javaagent:C:/Program Files/JetBrains/IntelliJ IDEA 2020.1.3/lib/idea_rt.jar=52453:C:/Program Files/JetBrains/IntelliJ IDEA 2020.1.3/bin" -Dfile.encoding=UTF-8 -classpath "C:/Program Files/JetBrains/IntelliJ IDEA 2020.1.3/plugins/maven/lib/maven3/boot/plexus-classworlds-2.6.0.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2020.1.3/plugins/maven/lib/maven3/boot/plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version2020.1.3 -s C:/Users/seven/.m2/settings.xml -Dmaven.repo.local=D:/maven/repository -DskipTests=true clean package
#制作镜像
docker build -t {harborHost}/library/ticket-web:$version ./target/ -f Dockerfile
#push到私有仓库
#docker push {harborHost}/library/ticket-web:$version